package com.pactera.mavenweb.daoimpl;

import org.springframework.stereotype.Service;

import com.pactera.mavenweb.dao.IGenericDao;
import com.pactera.mavenweb.dao.UserGroupDao;
import com.pactera.mavenweb.entity.UserGroup;

/**
 * userGroupDao实现类
 * @author SteveXIE
 *
 */
@Service("userGroupDao")
public class UserGroupDaoImpl extends GenericDaoImpl<UserGroup> implements UserGroupDao {
	
	public UserGroupDaoImpl() {
		super(UserGroup.class);
	}

//	@Override
	@SuppressWarnings("unchecked")
	public int saveUserGroup(UserGroup userGroup) {
		try {
			this.insert(userGroup);
			return 0;
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
}